package cn.com.mjsoft.framework.persistence.core.type;

import cn.com.mjsoft.framework.persistence.core.CustomTypeValue;

/**
 * 自定义的java类型到数据库类型转换抽象类。
 * @author mjsoft
 * 
 */
public abstract class AbstractCustomTypeValue implements CustomTypeValue
{
    protected Integer sqlType;
    protected String typeName;
    protected Object value;

    public AbstractCustomTypeValue( Integer sqlType, String typeName,
        Object value )
    {
        this.sqlType = sqlType;
        this.typeName = typeName;
        this.value = value;
    }

    public Object getValue()
    {
        return value;
    }

    public void setValue( Object value )
    {
        this.value = value;
    }

    public Integer getSqlType()
    {
        return sqlType;
    }

    public void setSqlType( Integer sqlType )
    {
        this.sqlType = sqlType;
    }

    public String getTypeName()
    {
        return typeName;
    }

    public void setTypeName( String typeName )
    {
        this.typeName = typeName;
    }

}
